package com.joker.orange.domain.bo;

import com.joker.common.core.domain.BaseEntity;
import com.joker.common.core.validate.AddGroup;
import com.joker.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;


/**
 * 热搜和历史业务对象 t_hot_search_history
 *
 * @author Joker
 * @date 2024-07-04
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class HotSearchHistoryBo extends BaseEntity {

    /**
     * 唯一标识
     */
    @NotNull(message = "唯一标识不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 订单名称
     */
    @NotBlank(message = "订单名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String searchName;

    /**
     * 热搜类型（0-热搜词、1-搜索历史词）
     */
    @NotBlank(message = "热搜类型（0-热搜词、1-搜索历史词）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String searchType;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
